export default {
  //mutations唯一目的修改state的状态，里面的方法尽可能单一
  AddCounter(state, payload) {
    payload.count += 1;
  },
  addToCart(state, payload) {
    payload.checked = false;
    this.state.cartList.push(payload);
  },
};
